use "C:\Users\m1049\Dropbox\Wang_PB Replication\data\main.dta",clear

** summary statistics

sum dv means universal tax_burden tax_fair tax_inequality needy_priority income_bin female whites education child trust partisanship ideology resentment egarlitarianism

** covariate balance

tabstat income_bin female whites age education child trust partisanship ideology resentment egarlitarianism , by(treatment) nototal

mat Ftest  = J(11,1,0)
local j = 1
quiet foreach var of varlist income_bin female whites education age child trust partisanship ideology resentment egarlitarianism {
  reg `var' i.treatment, r
  test 1.treatment=2.treatment=3.treatment=0
  mat Ftest[`j',1]=r(p)
  local j = `j'+1
}
mat list Ftest
